/*
 * In memory object used for Rules for parsing the SQL query
 */

package com.querie.parser;

import java.util.List;

/**
 *
 * @author a-skoshy
 */
public class Rule {
	private String name;
	private String startKeyExpression;
	private String stopKeyExpression;
	private List<String> startKeyList;
	private List<String> endKeyList;


	public Rule(){
	}

	public void setName(String name){
		this.name = name;
	}

	public String getName(){
		return name;
	}

	public void setStartKeyExpression(String expr){
		this.startKeyExpression = expr;
	}

	public String getStartKeyExpression(){
		return startKeyExpression;
	}
	public void setStopKeyExpression(String expr){
		this.stopKeyExpression = expr;
	}

	public String getStopKeyExpression(){
		return stopKeyExpression;
	}
	public void setStartKeyList(List<String> list){
		this.startKeyList = list;
	}

	public List<String> getStartKeyList(){
		return startKeyList;
	}

	public void setEndKeyList(List<String> list){
		this.endKeyList = list;
	}

	public List<String> getEndKeyList(){
		return endKeyList;
	}


	public String toString(){
		return name + ":" + startKeyExpression+ ":" + stopKeyExpression+ ":" + startKeyList+ ":" + endKeyList;
	}
}
